package practice1_100;

public class Practice456 {
    public boolean find132pattern(int[] nums) {
        if(nums.length<3) return false;
        for (int i = 0; i <= nums.length-3; i++) {
            for (int j = i+1; j <= nums.length-2; j++) {
                for (int k = j+1; k <= nums.length-1; k++) {
                    if(nums[i]<nums[k]&&nums[j]>nums[k]) return true;
                }
            }
        }
        return false;
    }

    public static void main(String[] args) {
        int[] n=new int[10000000];
        for (int i = 0; i < n.length/2; i++) {
            n[i]=100;
        }
        boolean a= new Practice456().find132pattern(new int[]{});
        System.out.println(a);
    }
}
